//================================================================
// 전역 번수 설정
//================================================================
var m_ContextName = "/";

var m_ListCount = 0;
var m_isListCount = true;

var m_AnalysisType1 = 0;
var m_AnalysisType2 = 0;
var m_AnalysisType3 = 0;
var m_AnalysisType4 = 0;

var m_SiteName = "";
var m_isComplete = "";
//================================================================





//================================================================
// Util Function
//================================================================
function fnInitPage(strContext, strSiteName)
{
	m_ContextName = strContext;	
	
	m_SiteName = strSiteName;	
}


//================================================================
// Dynamic Display Function
//================================================================
function fnAjaxContents()
{
	var url = m_ContextName + '/analysis/ajax_detect_count.json';
	
	var ajaxAction = new Ajax.Request(
		url,
		{
			method: 'post',
			onSuccess: fnAjaxContentsSuccess,
			onFailure: fnAjaxContentsFail
		}
	)
}

function fnAjaxContentsFail()
{
	alert('Fail Retry Again.');
}

function fnAjaxContentsSuccess(req)
{
	var store = req.responseText.evalJSON();
	if (store.json_count != '0')
	{
		m_AnalysisType1 = store.json_list[0].cnt;
		m_AnalysisType2 = store.json_list[1].cnt;
		m_AnalysisType3 = store.json_list[2].cnt;
		m_AnalysisType4 = store.json_list[3].cnt;
	}
}


















